package fr.adama.dto;

import fr.adama.constraint.CodePostalContraint;
import fr.adama.constraint.NumSiretConstraint;
import fr.adama.constraint.NumeroTelephone;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.Size;
import org.codehaus.jackson.annotate.JsonIgnore;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author mini-john
 */
public class AdherentDTO implements Serializable {

    private Long id;
    @Size(min = 1, message = "Taille Invalide")
    private String nomPrenom;
    @Size(min = 1, message = "Taille Invalide")
    private String adresse;

    private String complementAdresse;
    @CodePostalContraint
    private String codePostal;
    @Size(min = 1, message = "Taille Invalide")
    private String ville;
    @NumeroTelephone
    private String telephone;
    @NumeroTelephone
    private String mobile;
    @Size(min = 1, message = "Taille Invalide")
    private String numUrssaf;
    @NumSiretConstraint
    private String numSiret;
    @JsonIgnore
    private List<ContratDTO> contrats;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNomPrenom() {
        return nomPrenom;
    }

    public void setNomPrenom(String nomPrenom) {
        this.nomPrenom = nomPrenom;
    }

    public String getAdresse() {
        return adresse;
    }

    public void setAdresse(String adresse) {
        this.adresse = adresse;
    }

    public String getComplementAdresse() {
        return complementAdresse;
    }

    public void setComplementAdresse(String complementAdresse) {
        this.complementAdresse = complementAdresse;
    }

    public String getCodePostal() {
        return codePostal;
    }

    public void setCodePostal(String codePostal) {
        this.codePostal = codePostal;
    }

    public String getVille() {
        return ville;
    }

    public void setVille(String ville) {
        this.ville = ville;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getNumUrssaf() {
        return numUrssaf;
    }

    public void setNumUrssaf(String numUrssaf) {
        this.numUrssaf = numUrssaf;
    }

    public String getNumSiret() {
        return numSiret;
    }

    public void setNumSiret(String numSiret) {
        this.numSiret = numSiret;
    }

    @JsonIgnore
    public List<ContratDTO> getContrats() {
        return contrats;
    }

    public void setContrats(List<ContratDTO> contrats) {
        this.contrats = contrats;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

}
